package com.gupaoedu.pattern.decorator;

/**
 * 2019/9/28
 * created by chenpp
 * 加红豆2元
 */
public class RedBeansDecorator extends DefaultMilkTea  {

    private MilkTea milkTea;

    public RedBeansDecorator(MilkTea milkTea){
        this.milkTea = milkTea;
    }

    public String getRemark() {
        return milkTea.getRemark()+"加一份红豆 ";
    }

    public int getPrice() {
        return milkTea.getPrice()+2;
    }
}
